variable "asg_name" {
  default = ""
}
variable "asg_max_size" {
  default = 1
}
variable "asg_min_size" {
  default = 1
}
variable "asg_cooldown" {
  default = 180
}
variable "asg_vswitch_id" {
  type = list(string)
  default = []
}
variable "asg_removal_policies" {
  type = list(string)
  default = [
    "OldestScalingConfiguration", #删除伸缩配置最旧的ECS实例
    "OldestInstance", #删除附加到伸缩组的第一个ECS实例
  ]
}
variable "rds_instance_ids" {
  default = []
  type = list(string)
}
variable "slb_instance_ids" {
  default = []
  type = list(string)
}

variable "ecs_image" {
  default = "ubuntu_18_04_64_20G_alibase_20190624.vhd"
}
variable "ecs_instance_type" {
  default = ["ecs.t5-lc1m1.small"]
  type = list(string)
}
variable "ecs_sg_id" {
  type = list(string)
  default = []
}
variable "ecs_max_bandwidth_in" {
  default = 200
}

variable "ecs_max_bandwidth_out" {
  default = 0
}
variable "ecs_disk_size" {
  default = 30
}
variable "ecs_internet_billing_type" {
  default = "PayByTraffic"
}
variable "ecs_disk_type" {
  default = "cloud_efficiency"
}
variable "enable" {
  default = "true"
}
variable "active" {
  default = "true"
}
variable "ecs_key_name" {
  default = ""
}
variable "role_name" {
  default = ""
}
variable "force_delete" {
  default = true
}
variable "tags" {
  type = map
  default = {}
}
variable "ecs_data_disks" {
  type = list(map(string))
  default = []
}
variable "lifecycle_transition" {
  default = "SCALE_IN"
}
variable "heartbeat_timeout" {
  default = "600"
}
variable "hook_action_policy" {
  default = "ABANDON" //生命周期挂钩超时后的动作,ABANDON、CONTINUE
}
variable "notification_metadata" {
  default = ""
}
variable "notification_arn" {
  default = ""
}
variable "asg_rule_adjustment_type" {
  default = "TotalCapacity"
}
variable "asg_rule_adjustment_value" {
  default = "0"
}
variable "asg_rule_cooldown" {
  default = ""
}
variable "create_target_tracking_rule" {
  default = false
}
variable "asg_rule_estimated_instance_warmup" {
  default = "180"
}
variable "asg_rule_metric_name" {
  default = "CpuUtilization"
}
variable "asg_rule_target_value" {
  default = "50"
}
variable "asg_rule_disable_scale_in" {
  default = false //是否禁用缩容
}
variable "create_step_rule" {
  default = false
}
variable "asg_rule_step_adjustments" {
  type        = list(map(string))
  default     = []
}
variable "asg_alarm_enable" {
  default = true
}
variable "alarm_task_setting" {
  type        = map(string)
  default     = {}
}
variable "asg_alarm_description" {
  default = ""
}
variable "asg_alarm_metric_type" {
  default = "system"
}
variable "asg_alarm_metric_name" {
  default = "CpuUtilization"
}
variable "asg_notification_type" {
  type = list(string)
  default = ["AUTOSCALING:SCALE_OUT_SUCCESS","AUTOSCALING:SCALE_OUT_ERROR"]
}
variable "create_scaling_group" {
  type = bool
  default = true
}
variable "create_scaling_configuration" {
  type = bool
  default = false
}
variable "scaling_group_id" {
  default = ""
}
variable "create_lifecycle_hook" {
  type = bool
  default = false
}
variable "create_simple_rule" {
  type = bool
  default = false
}
variable "create_lscaling_alarm" {
  type = bool
  default = false
}
variable "create_lscaling_notification" {
  type = bool
  default = false
}
variable "userdata_TERRAFORM_OSSBUCKET" {
  default = ""
}
variable "userdata_VAR_PLAYBOOKS" {
 default = []
 type = list(string) 
}
variable "userdata_ENV_HOME" {
  default = "/opt"
}